"use strict";
cc._RF.push(module, 'c3cb5IcUExMvZtC9K4d0c7X', 'PostmodernismMediator');
// script/postmodernism/PostmodernismMediator.ts

"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
var BaseMediator_1 = require("../../libs/lightMVC/core/base/BaseMediator");
var PostmodernismView_1 = require("./PostmodernismView");
var Facade_1 = require("../../libs/lightMVC/core/Facade");
var _CatalogueView_1 = require("../catalogue/ CatalogueView");
var _CatalogueMediator_1 = require("../catalogue/ CatalogueMediator");
var PostmodernismMediator = /** @class */ (function (_super) {
    __extends(PostmodernismMediator, _super);
    function PostmodernismMediator() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    PostmodernismMediator.prototype.init = function (data) {
        var self = this;
        //进入下一个界面
        this.bindEvent(PostmodernismView_1.default.Enter, function (str) {
            console.log("打開界面");
            //打开第一个界面  
            Facade_1.Facade.getInstance().openView(_CatalogueMediator_1.default, _CatalogueView_1.default, str);
        }, this);
    };
    PostmodernismMediator.prototype.viewDidAppear = function () {
        //this.view.init();
    };
    PostmodernismMediator.prototype.destroy = function () {
    };
    PostmodernismMediator.CHECKGALLERY = "CHECKGALLERY";
    return PostmodernismMediator;
}(BaseMediator_1.default));
exports.default = PostmodernismMediator;

cc._RF.pop();